import http from "../utils/http.js"
//微信登录接口
export const reqLogin=(code)=>{
  return http.get(`/weixin/wxLogin/${code}`)
}
//获取用户信息
export const reqUserInfo = () => {
  return http.get('/weixin/getuserInfo')
}
//将本地资源上传服务器upload实例方法
export const reqUploadFile = (filePath, name) => {
  return http.upload('/fileUpload', filePath, name)
}
//更新用户信息
export const reqUpdateUserInfo = (updateUser) => {
  return http.post('/weixin/updateUser', updateUser)
}